package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_jieshi_unlock_position", autoSave = true)
public class LogJieShiUnlockPosition {

    @FieldTypeAnnotation(desc = "活动Id", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "地块坐标")
    private int position;

    @FieldTypeAnnotation(desc = "交子消耗前数量")
    private long beforeJiaoZi;

    @FieldTypeAnnotation(desc = "交子消耗数量")
    private long costJiaoZi;

    @FieldTypeAnnotation(desc = "交子消耗后数量")
    private long afterJiaoZi;


    @FieldTypeAnnotation(desc = "时间")
    private Date time;

    public LogJieShiUnlockPosition(int activityId, long userId, int position, long beforeJiaoZi, long costJiaoZi, long afterJiaoZi) {
        this.activityId = activityId;
        this.userId = userId;
        this.position = position;
        this.beforeJiaoZi = beforeJiaoZi;
        this.costJiaoZi = costJiaoZi;
        this.afterJiaoZi = afterJiaoZi;
        this.time = new Date();
    }
}
